package com.jingdianjichi.auth.common.entity;

import lombok.Data;

/**
 * ClassName:PageInfo
 * Package:com.jingdianjichi.subject.common.entity
 * Description:
 *
 * @Author fst
 * @Create 2024/9/29 15:10
 * @Version 1.0
 */

@Data
public class PageInfo
{
    private Integer pageNo=1;

    private Integer pageSize=20;

    public  Integer getPageNo()
    {
        if(pageNo==null||pageNo<0)
        {
            return 1;
        }
        return pageNo;
    }

    public Integer getPageSize()
    {
        if(pageSize==0||pageSize==null||pageSize>Integer.MAX_VALUE)
        {
            return 20;
        }
        return pageSize;
    }


}
